﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ModelRulesAdd.aspx.cs" Inherits="park.ModelCode.ModelRulesAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>设备编码管理->规则维护</title>
    <script src="../load.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <input id="ID" type="hidden" value="<%=fix("id") %>" />
    <div id="div_ModelType"></div>

    <script id="full_ModelType" type="text/x-jquery-tmpl">
    <div>设备类型:${ModeName}</div>
    <div>最后更新人:${AddUser}</div>
    <div>更新时间:${AddDate}</div>
    </script>
    <div><input id="btnAdd" type="button" value="添加规则" /></div>

<div class="table_box">
        <table id="tbl_Rules" width="90%" border="0" cellspacing="0" cellpadding="0">
            <tr class="td_title">
              <td>规则名称</td>
              <td>字符长度</td>
              <td>属性说明</td>
              <td>自定义格式</td>
              <td>操作</td>
            </tr>
        </table>
        <script id="full_Rules" type="text/x-jquery-tmpl">
        <tr class="tr_Delete">
            <td><input name="txtName" type="text" value="${Name}" /></td>
            <td><input name="txtLength" type="text" value="${Length}" /></td>
            <td><input name="txtDescription" type="text" value="${Description}" /></td>
            <td><input name="txtFormat" type="text" value="${Format}" /></td>
            <td><a href="#" onclick="javascript:return DeleteTr(this);" >删除</a></td>
        </tr>
        </script>
    </div>
    <div><asp:Button ID="Button2" runat="server" Text="保存" onclick="Button2_Click" /><a href="ModelCodeList.aspx">取消</a></div>
    </form>
</body>
</html>
